package com.etc.zmall.dao;

import java.util.List;

import com.etc.zmall.entity.Shop;


/**
 * ShopDao接口
 * @author 
 *
 */
public interface ShopDao {
	//增加商家（店铺）
	public boolean addShop(Shop shop);
	//删除商家（店铺）
	public boolean delShop(int shopid);
	//修改商家（店铺）信息
	public boolean upDateShop(String shopname,int state );
	//修改商家（店铺）信息,店主修改
	public boolean upDateShop(int shopid,String shopname,String shopphone);
	//查找所有商家（店铺）信息
	public List<Shop> queryAllShop();
	//查找单个商家（店铺）信息
	public Shop queryOneShop(int shopid);
	//查找单个商家（店铺）信息
	public Shop queryOneShop(String shopuser);
	
	/**
	 * 店铺登录
	 * @param shopname
	 * @param shoppwd
	 * @return
	 */
	public boolean shopLogin(String shopname,String shoppwd);
	/**
	 * 获取商店编号
	 * @param shopname
	 * @return
	 */
	public List<Shop> selShopname(String shopname);
}
